import request from '@/utils/request'

// 查询生产登记、运输信息详细
export function getProduceAndTransInfo(qcode) {
  return request({
    url: '/flow/produceAndTrans/' + qcode,
    method: 'get'
  })
}
export function getProduceAndTransInfoErp(qcode) {
  return request({
    url: '/flow/produceAndTrans/erp/' + qcode,
    method: 'get'
  })
}
// 修改追溯明细
export function updateZsdt(data) {
  return request({
    url: '/flow/zsdt',
    method: 'put',
    data: data
  })
}
//查询产品信息列表
export function listCoursefrom(query) {
  return request({
    url: '/flow/mt/list',
    method: 'get',
    params: query
  })
}
//查询产品信息明细数据
export function listCoursefromtrans(orderId) {
  return request({
    url: '/system/dt/list',
    method: 'get',
    params: orderId
  })
}
//查询产品信息明细数据
export function listCoursefromtransErp(orderId) {
  return request({
    url: '/system/dt/listerp',
    method: 'get',
    params: orderId
  })
}
// 修改追溯明细 erp
export function updateZsdtErp(data) {
  return request({
    url: '/flow/zsdt/uptErp',
    method: 'put',
    data: data
  })
}
//查询订单列表
export function orderList(query) {
  return request({
    url: '/flow/mt/list2',
    method: 'get',
    params: query
  })
}

